﻿using System;
using System.Windows.Forms;

namespace WorkLogger.Client.Controls {
	public partial class MainMenuView : UserControl, IMainMenuView {
		public MainMenuView() {
			InitializeComponent();
		}

		public event EventHandler AboutProgram;
		public event EventHandler OptionsClick;
		public event EventHandler WorkedTimeReport;
		public event EventHandler Exit;

		private void AboutToolStripMenuItemClick(object sender, EventArgs e) {
			if (AboutProgram != null) {
				AboutProgram(this, e);
			}
		}

		private void OptionsToolStripMenuItemClick(object sender, EventArgs e) {
			if (OptionsClick != null) {
				OptionsClick(this, e);
			}
		}

		private void WorkedTimeReportToolStripMenuItemClick(object sender, EventArgs e) {
			if (WorkedTimeReport != null) {
				WorkedTimeReport(this, e);
			}
		}

		private void ExitToolStripMenuItemClick(object sender, EventArgs e) {
			if (Exit != null) {
				Exit(this, e);
			}
		}
	}
}